package com.jzmy.cultivate.controller.feign;

import com.jzmy.cultivate.entity.Courses;
import com.jzmy.cultivate.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mengzhichao
 * @create 2022-08-29-11:22
 */
@RestController
@RequestMapping("/courses")
public class CoursesFeignController {

    @Autowired
    private CoursesService coursesService;

    @GetMapping("/selectById")
    public Courses selectById(String id){
       return  coursesService.getById(id);
    }



}
